﻿#include "FITKAbsGeomTools.h"
#include "FITKGeoInterfaceFactory.h"

namespace Interface
{
    // 点查询。
    //@{
    FITKAbstractGeomPointTool* FITKAbstractGeomPointTool::createTool()
    {
        //获取注册的工具生成器
        FITKAbstractGeomToolsCreator* c = Interface::FITKInterfaceGeometryFactory::getInstance()->getGeomToolsCreator();
        if (c == nullptr) return nullptr;
        //创建工具
        return c->createPointTool();
    }

    bool FITKAbstractGeomPointTool::getXYZ(FITKAbsVirtualTopo* vtp, double* xyz)
    {
        return false;
    }

    bool FITKAbstractGeomPointTool::getXYZ(const int & id, double* xyz)
    {
        return false;
    }
    //@}

    // 平面查询。
    //@{
    FITKAbstractGeomPlaneFaceTool* FITKAbstractGeomPlaneFaceTool::createTool()
    {
        //获取注册的工具生成器
        FITKAbstractGeomToolsCreator* c = Interface::FITKInterfaceGeometryFactory::getInstance()->getGeomToolsCreator();
        if (c == nullptr) return nullptr;
        //创建工具
        return c->createPlaneFaceTool();
    }
    //@}

    FITKAbstractGeomToolsCreator::~FITKAbstractGeomToolsCreator()
    {
    }

    FITKAbstractGeomPointTool* FITKAbstractGeomToolsCreator::createPointTool()
    {
        //错误值
        return nullptr;
    }

    FITKAbstractGeomPlaneFaceTool* FITKAbstractGeomToolsCreator::createPlaneFaceTool()
    {
        //错误值
        return nullptr;
    }
}


